package com.csxy.lsh.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(description = "EduChapter对象")
public class EduChapter implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "章节ID")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(description = "课程ID")
    private String courseId;

    @Schema(description = "章节名称")
    private String title;

    @Schema(description = "显示排序")
    private Integer sort;

    @Schema(description = "创建时间", example = "2021-01-01 00:00:00")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @Schema(description = "更新时间", example = "2021-01-01 00:00:00")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
